<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="com.java.bean.*"%>
<% 
int pageNum1=(Integer)session.getAttribute("pageNum");
int pageCount1=(Integer)session.getAttribute("pageCount");
String fenlei1=(String)session.getAttribute("fenlei");
%>

<div class="divBody">
  <div class="divContent">
<%if(pageNum1-1>1){%>
        <a href="../houtaibook/list.jsp?pageNum=<%=pageNum1-1%>&fenlei=<%=fenlei1%>" class="aBtn bold">上一页</a>
 <%}else{%>
        <a href="../houtaibook/list.jsp?pageNum=<%=1%>&fenlei=<%=fenlei1%>" class="aBtn bold">上一页</a>
 <%}%>
 
      <%
      	for (int i = 1; i <= pageCount1; i++) {
      		if(i==pageNum1){
      %>
          <span class="spanBtnSelect"><%=i%></span>
          <%}else{%>
          <a href="../houtaibook/list.jsp?pageNum=<%=i%>&fenlei=<%=fenlei1%>" class="aBtn"><%=i%></a>
     <%}
     }%>
        <%if(pageNum1+1<=pageCount1){%>
        <a href="../houtaibook/list.jsp?pageNum=<%=pageNum1+1%>&fenlei=<%=fenlei1%>" class="aBtn bold">下一页</a> 
        <%}else{%>
         <a href="../houtaibook/list.jsp?pageNum=<%=pageCount1%>&fenlei=<%=fenlei1%>" class="aBtn bold">下一页</a> 
        <% }%>
  </div>
</div>